#include <iostream>
using namespace std;
int main()
{
    int num1 = 0;
    int num2 = 0;
    int num3 = 0;

    cout<<"请输入小猪A的体重"<<endl;
    cin >> num1;
    cout<<"请输入小猪B的体重"<<endl;
    cin >> num2;
    cout<<"请输入小猪C的体重"<<endl;
    cin >> num3;

    cout<<"小猪A的体重为："<<endl;
    cout<<"小猪B的体重为："<<endl;
    cout<<"小猪C的体重为："<<endl;


    if(num1 > num2)//A比B重
    {
      if(num1 > num3)//A重
      {
          cout<<"小猪A最重"<<endl;
      } else
      {
          cout<<"小猪C最重"<<endl;
      }
    } else//B比A重
    {
        if (num2 > num3) {
            cout << "小猪B最重" << endl;
        } else {
            cout << "小猪C最重" << endl;
        }
    }
    system("pause");

    return 0;
}